<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 考点GO&AO,原型
        var a = '1';
        function test(){
            var a = '2';
            this.a = '3';
            console.log(a);
        }
        test();
        new test();
        console.log(a);

        console.log('-------分割线-------');
        
        var b = 5;
        function test1(){
            b = 0;
            console.log(b);
            console.log(this.b);
            var b;
            console.log(b);
        }
        test1();
        new test1();
    </script>
</body>
</html>